#pragma once
#include "ContentControl.h"
#include <memory>
namespace cxgui
{
using namespace std;
class HeaderedContentControl : public ContentControl 
{
public:
	shared_ptr<Control> GetHeaderControl() const;
	void SetHeaderControl(shared_ptr<Control> headerControl);
	virtual void OnHeaderControlChanged();

	virtual Vec2f GetPreferedSize() override;

	virtual void Draw() override;

protected:
	shared_ptr<Control> _headerControl;
};
}